﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using NextCMS.Models;

/// <summary>
/// Summary description for CommonMethods
/// </summary>
public class CommonMethods
{
	public CommonMethods()
	{
		//
		// TODO: Add constructor logic here
		//
	}
    public static string GetSiteName(int SiteId)
    {
        using (SitesHelper helper = new SitesHelper())
        {
            SiteModel sm = helper.GetById(SiteId);
            if (sm == null)
                return "Not Selected";
            else
                return sm.Name;
        }
    }
    
}